<?php
/*
	# 文件头部
	# Authors: 小照
	# Mailbox: 2453162656@qq.com
*/
include ('state.php');
$row = $DB->get_row("select * FROM " . DBQZ . "_user where uid ='".$userrow['uid']."' limit 1"); //获取用户信息

?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>用户面板 - <?=$conf['name']?></title>
		<link rel="icon" href="/favicon.ico" type="image/x-icon" />
		<meta name="description" content="" />
		<meta name="keywords" content="">
		<link rel="stylesheet" type="text/css" href="../layui/css/layui.css" />
		
		<style>
			body{
				margin: 0 auto;
				color: #2c3e50;
				/*
				text-align: center;
				*/
			}
			.container {
			  max-width: 780px;
			  padding: 50px;
			  margin: 0 auto;
			  text-align: center;
			}
		</style>
	</head>
	
	<body style="background-image: url(../layui/images/background.png);">
		<ul class="layui-nav" lay-filter="">
			<li class="layui-nav-item"><a href="../"><b style="font-size:17px"><?=$conf['logobt']?></b></a></li>
			<li class="layui-nav-item"><a href="../">首页</a></li>
			<li class="layui-nav-item"><a href="main.php">个人中心</a></li>
			<li class="layui-nav-item"><a href="<?=$conf['qqjl']?>" target="_blank">群聊社区</a></li>
			<li class="layui-nav-item">
				<a href="javascript:;">友情链接</a>
				<dl class="layui-nav-child">
<?php
$sql_Mysql = $DB->query("select * from " . DBQZ . "_friendly  order by id desc");
while ($row_Mysql = $DB->fetch($sql_Mysql)) {
?>
					<dd><a href="<?=$row_Mysql['url']?>" target="_blank"><?=$row_Mysql['name']?></a></dd>
<?php } ?>
				</dl>
			</li>
			<li class="layui-nav-item"><a href="logout.php">注销登录</a></li>
			
			<li class="layui-nav-item layui-layout-right" lay-unselect="">
				<a href="javascript:;">
					<img src="//q1.qlogo.cn/g?b=qq&nk=<?=$row['qq']?>&s=640" class="layui-nav-img">
					<?=$row['user']?> / 超级管理员
					<span class="layui-nav-more">
					</span>
				</a>
				<dl class="layui-nav-child layui-anim layui-anim-upbit" style="min-width: 50%;">
					<dd>
						<a href="editinfo.php">
							修改资料
						</a>
					</dd>
<?php if($row['active']==1){ ?>
					<dd>
						<a href="../admin/">
							后台管理
						</a>
					</dd>
<?php } ?>
					<dd>
						<a href="http://wpa.qq.com/msgrd?v=3&uin=2453162656&site=qq&menu=yes" target="_blank">
							联系开发者
						</a>
					</dd>
					<dd>
						<a href="logout.php">
							注销登录
						</a>
					</dd>
				</dl>
			</li>
		</ul>